from typing import List
class Solution1470:
    def shuffle(self, nums: List[int], n: int) -> List[int]:
        nums[::2],nums[1::2]=nums[:n],nums[n:]
        return nums




if __name__=="__main__": 
    print(Solution1470().shuffle([2,5,1,3,4,7],n=3))
    print(Solution1470().shuffle([1,2,3,4,4,3,2,1],n=4))
    print(Solution1470().shuffle([1,1,2,2],n=2))